<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
            <h:dataTable value="#{autorFaces.autores}" var="item">
                <h:column>
                    <f:facet name="header"> Nome </f:facet>
                    #{item.nome}
                </h:column>
                <h:column>
                    <f:facet name="header"> Editar </f:facet>
                    <h:commandLink value="Editar" action="#{autorFaces.edit(item)}"/> 
                </h:column>
            </h:dataTable>
            <h:commandLink id="lnkNovoAutor" value="Cadastro de Autor" action="#{autorFaces.adicionar}"/> 
        </h:form>
    </h:body>
</html>

